<?php

/*
 * Fresns Control Panel (Standalone)
 * Copyright (C) 2021-Present 刘鑫
 * Released under the MIT License.
 */

namespace App\Plugins\FcpApi\TweetAdmin;

use App\Base\Services\BaseAdminService;

class FsService extends BaseAdminService
{
    public function __construct()
    {
        $this->model = new FsModel();
        $this->resource = FsResource::class;
        $this->resourceDetail = FsResourceDetail::class;
    }

    public function common()
    {
        $common = parent::common();

        return $common;
    }

    public function getByCondKVMap($k, $v, $cond = [])
    {
        return $this->model->getByCondKVMap($k, $v, $cond);
    }

    public function updatePassword($id, $newPassword)
    {
        $this->model->updatePassword($id, $newPassword);
    }
}
